package cn.joyfulmedia.common.util;

import org.apache.commons.lang3.StringUtils;

/**
 * Created by ben on 16/4/23.
 */
public class PhotoUtil {
    public static String formatPhotoxx(String photo) {
        if (StringUtils.isNotBlank(photo)) {
            if (photo.contains("http://img.tophrmimg.com") && !photo.contains("?")) {
                photo = photo + "?x-oss-process=style/xx";
            }
        }
        return photo;
    }
}
